<?php 
$post = $self->getPost();
$current = $self->getPost()->getStatus();
?>

<ul class="star-rating" id="selRating">
	<li class="current-rating" style="width: <?php echo $post->getRating()*24; ?>px;">Current rating.</li>
	<li><a href="#" class="one-star">1</a></li>
	<li><a href="#" class="two-stars">2</a></li>
	<li><a href="#" class="three-stars">3</a></li>
	<li><a href="#" class="four-stars">4</a></li>
	<li><a href="#" class="five-stars">5</a></li>
</ul>

<script type="text/javascript">
//<![CDATA[
$.each($('#selRating a'), function (i) {
	var value = i+1;
	$(this).click(function (e) {
		updatePostRating(window.postId, value);
		e.preventDefault();
	});
});
//]]>
</script>